import { service as request } from '@/utils/request'
//编辑业务系统
export function doEdit (data) {
  return request({
    url: '/hawk/business/update',
    method: 'put',
    data
  })
}

//分页条件查询

export function getList (data) {
  return request({
    url: `/hawk/business/search/${data.page.current}/${data.page.size}`,
    method: 'get',
    params: data.query
  })
}

export function isBusExists (name) {
  return request({
    url: `/hawk/business/exists`,
    method: 'get',
    params:{name:name}
  })
}


